package com.lzh.runke.core.annotation.date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lzh.runke.core.web_base.enums.BaseEnum;

/**
 * @author LiuZiHao
 * @date 创建时间:2023年06月14日 15:58:18
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DateFieldType implements BaseEnum<Integer> {

    SECOND(0, "秒"),
    MINUTE(1, "分"),
    HOUR(2, "小时"),
    DAY(3, "天"),
    WEEK(4, "周"),
    MONTH(5, "月"),
    QUARTER(6, "季"),
    YEAR(7, "年");

    private final Integer value;
    private final String text;

    DateFieldType(Integer value, String text) {
        this.value = value;
        this.text = text;
    }

    @Override
    public Integer getValue() {
        return null;
    }

    @Override
    public String getText() {
        return BaseEnum.super.getText();
    }

    @Override
    public String getName() {
        return null;
    }
}
